const webpack = require('webpack')
module.exports = {
  lintOnSave: false,
  productionSourceMap: false,
  runtimeCompiler: true,
  assetsDir: 'static',
  publicPath: "./",
  devServer: {
    disableHostCheck: true,
    open: true,
    hotOnly: true,
    proxy: {
      "/gateway": {
        // target: process.env.PROXY,
        target: "https://dev.91medicine.net",
        // target: "http://192.168.0.169:9000",
        // target: "http://192.168.0.155:1234",
        //target: "https://test.91medicine.net",
        changeOrigin: true
      }
    },
  },
  outputDir: process.env.outputDir, // 打包生成的文件包
  configureWebpack: {
    performance: {
      hints: false
    },
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "windows.jQuery": "jquery"
      })
    ],
  }
};
